
package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.base.entity.Hospital;
import com.scs.application.modules.base.request.HospitalQueryRequest;

import javax.validation.Valid;
import java.util.List;


/**
 * 医院 service 接口
 *
 */
public interface HospitalService extends IBaseService<Hospital> {

    /**
     * 通过组织机构查询医院信息
     *
     * @param officeId
     * @return
     */
    Hospital findByOfficeId(String officeId);

    /**
     * page页
     *
     * @param request
     * @return
     */
    IPage<Hospital> page(HospitalQueryRequest request);

    /**
     * list列表
     *
     * @param request
     * @return
     */
    List<Hospital> list(HospitalQueryRequest request);

    /**
     * 关键字搜索医院信息
     *
     * @param request
     * @param keywords
     * @return
     */
    IPage<Hospital> pageByKeywords(HospitalQueryRequest request, String keywords);

    //外部系统调用-新增
    String addBatchFromTpc(@Valid List<Hospital> dataList);
}
